<template>
  <div>
    <el-container>
      <el-header>
        <div class="header-left">
          <i class="el-icon-menu"></i>
          <span class="header-left-right">后台管理系统</span>
        </div>
        <div class="header-rigt">
          <i class="el-icon-rank"></i>
          <i class="el-icon-close-notification"></i>
          <img src="../assets/777.jpg" alt="" />
          <span>
            <el-dropdown>
              <span>
                敏哥520<i class="el-icon-arrow-down el-icon--right"></i>
              </span>
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item icon="el-icon-plus"
                  >关于作者</el-dropdown-item
                >
                <el-dropdown-item icon="el-icon-circle-plus"
                  >项目仓库</el-dropdown-item
                >
                <el-dropdown-item icon="el-icon-circle-plus-outline"
                  >退出登陆</el-dropdown-item
                >
              </el-dropdown-menu>
            </el-dropdown>
          </span>
        </div>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu
            background-color="#314157"
            text-color="#fff"
            active-text-color="#3f9bfe"
            :router="true"
            :collapse-transition="false"
            :unique-opened="true"
            :default-active="activePath"
          >
            <el-menu-item index="welcom">
              <i class="el-icon-setting"></i>
              <span slot="title">系统首页</span>
            </el-menu-item>

            <el-submenu index="1">
              <template slot="title">
                <i class="el-icon-date"></i>
                <span>消息管理</span>
              </template>

              <el-menu-item index="new">消息列表</el-menu-item>
            </el-submenu>
            <el-submenu index="2">
              <template slot="title">
                <i class="el-icon-date"></i>
                <span>业务管理</span>
              </template>

              <el-menu-item index="business">业务管理</el-menu-item>
            </el-submenu>
            <el-submenu index="3">
              <template slot="title">
                <i class="el-icon-date"></i>
                <span>城市管理</span>
              </template>

              <el-menu-item index="city">城市管理</el-menu-item>
            </el-submenu>
            <el-submenu index="4">
              <template slot="title">
                <i class="el-icon-date"></i>
                <span>系统管理</span>
              </template>

              <el-menu-item index="system">系统管理</el-menu-item>
            </el-submenu>
            <el-submenu index="5">
              <template slot="title">
                <i class="el-icon-date"></i>
                <span>日薪管理</span>
              </template>

              <el-menu-item index="dailysalary">日薪管理</el-menu-item>
            </el-submenu>
          </el-menu>
        </el-aside>
        <el-main class="naigai-main">
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  name: "home",
  data() {
    return {
      activePath: "welcom",
    };
  },
  methods: {
    // activePatha(index) {
    //   this.activePath = index;
    // },
  },
};
</script>


<style scoped>
.naigai-main {
  padding: 0;
  text-align: left !important;
}
.el-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222e41;
  color: #fff;
  font-size: 24px;
  height: 80px;
  /* line-height: 80px; */
  text-align: center;
}

.el-aside {
  background-color: #314157 !important;
  color: #333;
  text-align: center;
  height: 100vh;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  height: 100vh;
}

.header-left {
  padding: 15px;
}
.header-left-right {
  margin-left: 15px;
}
.header-rigt {
  display: flex;
  /* 垂直居中 */
  align-items: center;
  padding: 15px !important;
  margin-right: 50px;
}
.header-rigt i {
  padding: 12px;
}
.header-rigt img {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  padding: 8px;
}
.header-rigt span {
  font-size: 14px;
  text-align: center;
  color: #fff;
}
</style>